<template>
  <view :class="classList">
    <u-sticky
        :itemWidth="itemWidth"
        :offsetTop="offsetTop"
        :enable="enable"
        :h5NavHeight="h5NavHeight"
        :bgColor="sticky_bgColor"
        :zIndex="zIndex"
    >
      <u-tabs
        v-if="listShow"
        :list=" list"
        :current="current"
        :name="name"
        :count="count"
        :height="height"
        :font-size="fontSize"
        :duration="duration"
        :active-color="activeColor"
        :inactive-color="inactiveColor"
        :bg-color="bgColor"
        @change="change"
      ></u-tabs>
    </u-sticky>
    <view
      class="m-tab-container"
      @touchstart="onTouchStart"
      @touchmove="onTouchMove"
      @touchend="onTouchEnd"
      @touchcancel="onTouchEnd"
    >
        <slot />
    </view>
  </view>
</template>

<script src="./m-tabs.js">
</script>
